export const difficultyLevel = [
  {
    label: '简单',
    value: 0,
    type: 'success'
  },
  {
    label: '中等',
    value: 1,
    type: 'warning'
  },
  {
    label: '困难',
    value: 2,
    type: 'danger'
  }
]

export const chartConfig = {
  title: {
    subtext: "提交数据",
    left: "center",
  },
  tooltip: {
    trigger: "item",
  },
  legend: {
    top: "bottom",
    left: "center",
  },
  series: [
    {
      name: "题目详情",
      type: "pie",
      radius: ["40%", "70%"],
      avoidLabelOverlap: false,
      itemStyle: {
        borderRadius: 10,
        borderColor: "#fff",
        borderWidth: 2,
        color: function (colors) {
          var colorList = [
            "rgb(90,188,101)",
            "rgb(60,128,242)",
            "rgb(206,70,22)",
            "rgb(238,154,0)",
            "rgb(144,147,153)",
          ]
          return colorList[colors.dataIndex]
        },
      },
      label: {
        show: true,
      },
      emphasis: {
        label: {
          show: true,
          fontSize: 40,
          fontWeight: "bold",
        },
      },
      data: [
        { value: 100, name: "AC" },
        { value: 100, name: "PAC" },
        { value: 100, name: "UAC" },
        { value: 100, name: "CE" },
        { value: 100, name: "..." },
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: "rgba(0, 0, 0, 0.5)",
        },
      },
    },
  ],
}